package cn.stylefeng.guns.modular.cb.mapper;

import cn.stylefeng.guns.modular.cb.entity.CbFocusCollection;
import cn.stylefeng.guns.modular.cb.model.params.CbFocusCollectionParam;
import cn.stylefeng.guns.modular.cb.model.result.CbFocusCollectionResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ss
 * @since 2021-01-19
 */
public interface CbFocusCollectionMapper extends BaseMapper<CbFocusCollection> {

    /**
     * 获取列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    List<CbFocusCollectionResult> customList(@Param("paramCondition") CbFocusCollectionParam paramCondition);

    /**
     * 获取map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") CbFocusCollectionParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<CbFocusCollectionResult> customPageList(@Param("page") Page page, @Param("paramCondition") CbFocusCollectionParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<CbFocusCollectionResult> customPageMapList(@Param("page") Page page, @Param("paramCondition") CbFocusCollectionParam paramCondition);


    /**
     * 获取分页map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<CbFocusCollectionResult>  getFocusList(@Param("page") Page page, @Param("paramCondition") CbFocusCollectionParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<CbFocusCollectionResult>  getFansList(@Param("page") Page page, @Param("paramCondition") CbFocusCollectionParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<CbFocusCollectionResult>  getSatffFocusList(@Param("page") Page page, @Param("paramCondition") CbFocusCollectionParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<CbFocusCollectionResult>  getStaffFansList(@Param("page") Page page, @Param("paramCondition") CbFocusCollectionParam paramCondition);
    /**
     * 获取分页map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    List<CbFocusCollectionResult>  getFocusListByid(@Param("paramCondition") CbFocusCollectionParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<CbFocusCollectionResult>  getCollectionPositionList(@Param("page") Page page, @Param("paramCondition") CbFocusCollectionParam paramCondition);

    /**
     * 关注收/藏数量
     * @param paramCondition
     * @return
     */
    Integer getFocusCollectionCount(@Param("paramCondition") CbFocusCollectionParam paramCondition);

    /**
     * 获取员工的粉丝列表
     *
     * @author ss
     * @Date 2021-01-19
     */
    Page<CbFocusCollectionResult>  getStaffFocusList(@Param("page") Page page, @Param("paramCondition") CbFocusCollectionParam paramCondition);

    /**
     * 删除关注/收藏
     * @param paramCondition
     * @return
     */
    Integer deleteByUserIdAndObjectId(@Param("paramCondition") CbFocusCollectionParam paramCondition);
}
